package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 根据用户id查询用户信息
 */
@ApiModel(description = "根据用户id查询用户信息")
@Data
public class SysInfoById {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", position = 1)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 账户
     */
    @ApiModelProperty(value = "账户", position = 2)
    private String username;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", position = 3)
    private String phone;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", position = 4)
    private String nickName;

    /**
     * 真实名称
     */
    @ApiModelProperty(value = "真实名称", position = 5)
    private String realName;

    /**
     * 性别(1.男 2.女)
     */
    @ApiModelProperty(value = "性别(1.男 2.女)", position = 6)
    private Integer sex;


    /**
     * 账户状态(1.正常 2.锁定 )
     */
    @ApiModelProperty(value = "账户状态(1.正常 2.锁定 )", position = 7)
    private Integer status;

    /**
     * 邮箱(唯一)
     */
    @ApiModelProperty(value = "邮箱(唯一)", position = 8)
    private String email;

}
